package com.hos.service;

import com.hos.dao.CardMapper;
import com.hos.pojo.IndexCard;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CardService {

    @Resource
    CardMapper cardMapper;

    public List<IndexCard> getDay() {
        List<IndexCard> list=cardMapper.getDay();
        for(IndexCard indexCard:list){
            indexCard.setImg(indexCard.getDocname());
        }
        return list;
    }
}
